<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>BLE Scanner</title>
    <link href="https://fonts.googleapis.com/css2?family=SF+Pro+Text:wght@400;600&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
            margin: 0;
            padding: 0;
            background-color: #F2F2F7;
            color: #000000;
            display: flex;
            flex-direction: column;
            height: 100vh;
        }
        h1 {
            font-size: 24px;
            font-weight: 600;
            margin: 0;
        }
        #header {
            background-color: #FFFFFF;
            padding: 15px 20px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
            z-index: 10;
        }
        #main {
            display: flex;
            flex: 1;
            overflow: hidden;
        }
        #deviceList {
            flex: 1;
            overflow-y: auto;
            padding: 20px;
        }
        #messageContainer {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 20px;
        }
        #messageBox {
            flex: 1;
            width: 100%;
            margin-bottom: 20px;
            border: 1px solid #E5E5EA;
            border-radius: 10px;
            padding: 10px;
            font-size: 14px;
            resize: none;
        }
        #footer {
            background-color: #FFFFFF;
            padding: 15px 20px;
            box-shadow: 0 -1px 3px rgba(0,0,0,0.1);
        }
        #sendMessage {
            display: flex;
        }
        #messageInput {
            flex-grow: 1;
            border: 1px solid #E5E5EA;
            border-radius: 10px;
            padding: 10px;
            font-size: 14px;
            margin-right: 10px;
        }
        button {
            background-color: #007AFF;
            color: #FFFFFF;
            border: none;
            border-radius: 10px;
            padding: 10px 20px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        button:hover {
            background-color: #0056b3;
        }
        ul {
            list-style-type: none;
            padding-left: 0;
            margin-bottom: 20px;
        }
        li {
            background-color: #FFFFFF;
            border-radius: 10px;
            padding: 15px;
            margin-bottom: 10px;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
    </style>
</head>
<body>
    <div id="header">
        <h1>BLE Scanner</h1>
        <button id="scanButton">Scan for BLE Devices</button>
    </div>
    <div id="main">
        <ul id="deviceList"></ul>
        <div id="messageContainer">
            <textarea id="messageBox" readonly></textarea>
        </div>
    </div>
    <div id="footer">
        <div id="sendMessage">
            <input type="text" id="messageInput" placeholder="Enter message">
            <button id="sendButton">Send</button>
        </div>
    </div>
    <script src="script.js"></script>
</body>
</html>
